<template>
    <el-row :gutter="20">
      <div class="block">
        <el-avatar :size="100" :src="url"></el-avatar>
      </div>
      <el-col :span="2">
        <el-card shadow="hover" @click="doMain"> 首页 </el-card>
      </el-col>
      <ArtCat></ArtCat>
      <UserInfo></UserInfo>
    </el-row>
</template>

<script lang="ts">
import {defineComponent, ref} from 'vue';
import {Operation, ArrowDown, Lock,ChatDotSquare} from "@element-plus/icons";
import ArtCat from "./navigationBar/ArtCat.vue"
import UserInfo from "./navigationBar/UserInfo.vue"
import router from "@/router";
export default defineComponent({
  name: 'NavigationBar',
  //接收父级组件传进来的参数
  props:[],
  components:{
    ArtCat,
    UserInfo,
  },
  setup(){
    const url = ref("http://res.zhaoxihang.com/FvZICtMWjsifW9AJ1FZjBpYmxykY")
    const doMain = () => {
      router.push("/")
    }
    return {
      url,
      Operation,
      ArrowDown,
      Lock,
      ChatDotSquare,
      doMain
    }
  }
});
</script>

<style>

</style>

